package com.zhi.common.validate.common;

import java.util.HashMap;
import java.util.Map;

/**
 * @author ftz-lover
 * @version 1.0
 * @date 2023/9/10 15:21
 *     校验组件上下文
 **/
public class ValidModuleContext {
    private Map<String, Object> paramMap;

    private ValidModuleContext() {
        this.paramMap = new HashMap<>();
    }

    public static ValidModuleContext create() {
        return new ValidModuleContext();
    }

    public ValidModuleContext put(String key, Object param) {
        paramMap.put(key, param);
        return this;
    }

    public Object get(String key) {
        return paramMap.get(key);
    }
}
